<?php



class AccountTransactionMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.AccountTransactionMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('account_transaction');
		$tMap->setPhpName('AccountTransaction');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'string', CreoleTypes::BIGINT, true, null);

		$tMap->addColumn('ACCOUNT_ID', 'AccountId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('TRANSACTION_DATETIME', 'TransactionDatetime', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('TYPE', 'Type', 'int', CreoleTypes::TINYINT, false, null);

		$tMap->addColumn('AMOUNT', 'Amount', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('ACCOUNT_BALANCE', 'AccountBalance', 'string', CreoleTypes::BIGINT, false, null);

		$tMap->addColumn('DESCRIPTION', 'Description', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('DESCRIPTION_WAP', 'DescriptionWap', 'string', CreoleTypes::VARCHAR, false, 255);

	} 
} 